package simple.cat.servlet;

import simple.cat.server.Request;
import simple.cat.server.Response;

/**
 * @author zheng9feng
 * @Description 自定义servlet规范
 * @Date 2020/12/29 07:17
 */
public interface Servlet {
	/**
	 * 初始化方法
	 *
	 * @throws Exception
	 */
	void init() throws Exception;
	
	/**
	 * 销毁
	 *
	 * @throws Exception
	 */
	void destroy() throws Exception;
	
	/**
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	void service(Request request, Response response) throws Exception;
}
